<?php

namespace app\api\model;

use think\Model;
use think\Exception;
use think\Db;




class Goodsitem extends Model
{

    

    

    // 表名
    protected $name = 'litestore_goods_spec';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
      
    ];
    



     public function goods()
    {
        return $this->hasOne(Goods::class, 'goods_id', 'goods_id');
    }

}
